#include<iostream>
using namespace std;
int b[10] = { 0 };
void search(char *s) {
	while (*s!='\0')
	{
		switch (*s)
		{
		case '0':b[0]++; break;
		case '1':b[1]++; break;
		case '2':b[2]++; break;
		case '3':b[3]++; break;
		case '4':b[4]++; break;
		case '5':b[5]++; break;
		case '6':b[6]++; break;
		case '7':b[7]++; break;
		case '8':b[8]++; break;
		case '9':b[9]++; break;
		default:
			break;
		}
		s++;
	}


}

int main() {
	char str[]= "123123abc";
	search(str);
	for (int i = 0; i <10; i++)
	{
		cout << b[i] << endl;
	}

	return 0;
}